<?php 
use Yii\helpers\Html;
use yii\helpers\Url;
use backend\components\SideNavWidget;
?>
<div class="col-md-2">
    <?php
    //左侧菜单权限
    $menuItem = [];
    if ($access = Yii::$app->params['access']) {
        isset($access['COIN']['INDEX']) && $menuItem[] = ['label' => '账单查看', 'url' => ['/coin/index']];
        isset($access['COIN']['VIRTUAL']) && $menuItem[] = ['label' => '积分查看', 'url' => ['/coin/virtual']];
    } else {
        $menuItem = [
            ['label' => '账单查看', 'url' => ['/coin/index']],
            ['label' => '积分查看', 'url' => ['/coin/virtual']],
        ];
    }
    
    echo SideNavWidget::widget([
        'options' => ['class' => 'list-group'],
        'items' => $menuItem,
    ]);

    
    ?>
</div>